#include "SourceSketcher.h"

#include <iostream>

SourceSketcher::SourceSketcher(Source * source)
{
	this->source = source;
}

SourceSketcher::~SourceSketcher(void)
{
}

void SourceSketcher::draw()
{
	Color * SourceLineColor = this->source->getLineColor();
	Color * SourceBackgroundColor = this->source->getElementColor();
	Texture * SourceTexture = this->source->getTexture();
	Position * SourcePosition = this->source->getPosition();
	float SourceRadius = this->source->getRadius();

	if(SourceTexture != NULL) {
		SketcherHelper::getInstance()->drawCircle(SourcePosition,SourceRadius,SourceTexture,SourceLineColor);
	}else {
		SketcherHelper::getInstance()->drawCircle(SourcePosition,SourceRadius,SourceBackgroundColor,SourceLineColor);
	}
	
	
}
